<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>stm32f4_blink_led: D:/123/stm32f4_blink_led-1.2.2-120323/config.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />



</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">stm32f4_blink_led
   &#160;<span id="projectnumber">1.2.2-120323</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="headertitle">
<div class="title">D:/123/stm32f4_blink_led-1.2.2-120323/config.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="config_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00007"></a>00007 <span class="comment">/******************************************************************************</span>
<a name="l00008"></a>00008 <span class="comment">* project: stm32f4_blink_led</span>
<a name="l00009"></a>00009 <span class="comment">* chip: STM32F407VG</span>
<a name="l00010"></a>00010 <span class="comment">* compiler: arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors) 4.6.2</span>
<a name="l00011"></a>00011 <span class="comment">*   20110921 (release) [ARM/embedded-4_6-branch revision 182083]</span>
<a name="l00012"></a>00012 <span class="comment">******************************************************************************/</span>
<a name="l00013"></a>00013 
<a name="l00014"></a>00014 <span class="preprocessor">#ifndef CONFIG_H_</span>
<a name="l00015"></a>00015 <span class="preprocessor"></span><span class="preprocessor">#define CONFIG_H_</span>
<a name="l00016"></a>00016 <span class="preprocessor"></span>
<a name="l00017"></a>00017 <span class="preprocessor">#include &quot;<a class="code" href="hdr__bitband_8h.html" title="Header for bit-banding.">hdr/hdr_bitband.h</a>&quot;</span>
<a name="l00018"></a>00018 
<a name="l00019"></a>00019 <span class="comment">/*</span>
<a name="l00020"></a>00020 <span class="comment">+=============================================================================+</span>
<a name="l00021"></a>00021 <span class="comment">| global definitions</span>
<a name="l00022"></a>00022 <span class="comment">+=============================================================================+</span>
<a name="l00023"></a>00023 <span class="comment">*/</span>
<a name="l00024"></a>00024 
<a name="l00025"></a><a class="code" href="config_8h.html#a12cfaf33fd0b088a66297996b1dfea45">00025</a> <span class="preprocessor">#define CRYSTAL                             8000000ul   ///&lt; quartz crystal resonator which is connected to the chip</span>
<a name="l00026"></a><a class="code" href="config_8h.html#a84142cd3e3bf14c4ecd4b6707a808c39">00026</a> <span class="preprocessor"></span><span class="preprocessor">#define FREQUENCY                           168000000ul ///&lt; desired target frequency of the core</span>
<a name="l00027"></a>00027 <span class="preprocessor"></span>
<a name="l00028"></a><a class="code" href="config_8h.html#a843b341668408e5656cf19cf3389bb5a">00028</a> <span class="preprocessor">#define LED_GPIO                            GPIOD       ///&lt; GPIO port to which the LED is connected</span>
<a name="l00029"></a><a class="code" href="config_8h.html#a749f1d58a6e7d0f77a0086338769f523">00029</a> <span class="preprocessor"></span><span class="preprocessor">#define LED_pin                             13          ///&lt; pin number of the LED</span>
<a name="l00030"></a>00030 <span class="preprocessor"></span>
<a name="l00031"></a>00031 <span class="preprocessor">#define LED                                 (1 &lt;&lt; LED_pin)</span>
<a name="l00032"></a><a class="code" href="config_8h.html#ab9a421ff0084ac3e955741bc48da2c77">00032</a> <span class="preprocessor"></span><span class="preprocessor">#define LED_ODR                             LED_GPIO-&gt;ODR   ///&lt; output register for the LED</span>
<a name="l00033"></a><a class="code" href="config_8h.html#aec35ca8d22f67af74510586f979cbcbc">00033</a> <span class="preprocessor"></span><span class="preprocessor">#define LED_bb                              bitband_t m_BITBAND_PERIPH(&amp;LED_ODR, LED_pin)   ///&lt; bit-band &quot;variable&quot; to directly handle the pin</span>
<a name="l00034"></a>00034 <span class="preprocessor"></span>
<a name="l00035"></a>00035 <span class="comment">/*</span>
<a name="l00036"></a>00036 <span class="comment">+=============================================================================+</span>
<a name="l00037"></a>00037 <span class="comment">| strange variables</span>
<a name="l00038"></a>00038 <span class="comment">+=============================================================================+</span>
<a name="l00039"></a>00039 <span class="comment">*/</span>
<a name="l00040"></a>00040 
<a name="l00041"></a>00041 <span class="comment">/*</span>
<a name="l00042"></a>00042 <span class="comment">+=============================================================================+</span>
<a name="l00043"></a>00043 <span class="comment">| global variables</span>
<a name="l00044"></a>00044 <span class="comment">+=============================================================================+</span>
<a name="l00045"></a>00045 <span class="comment">*/</span>
<a name="l00046"></a>00046 
<a name="l00047"></a>00047 <span class="comment">/*</span>
<a name="l00048"></a>00048 <span class="comment">+=============================================================================+</span>
<a name="l00049"></a>00049 <span class="comment">| global functions&#39; declarations</span>
<a name="l00050"></a>00050 <span class="comment">+=============================================================================+</span>
<a name="l00051"></a>00051 <span class="comment">*/</span>
<a name="l00052"></a>00052 
<a name="l00053"></a>00053 <span class="comment">/******************************************************************************</span>
<a name="l00054"></a>00054 <span class="comment">* END OF FILE</span>
<a name="l00055"></a>00055 <span class="comment">******************************************************************************/</span>
<a name="l00056"></a>00056 <span class="preprocessor">#endif </span><span class="comment">/* CONFIG_H_ */</span>
</pre></div></div><!-- contents -->


<hr class="footer"/><address class="footer"><small>
Generated on Fri Mar 23 2012 00:11:20 for stm32f4_blink_led by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
